-
Notifications
You must be signed in to change notification settings - Fork 205
SG-38306 Python2 Removal - Part 9 - six module #395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: ticket/SG-38306-python2-ensure-ascii
Are you sure you want to change the base?
SG-38306 Python2 Removal - Part 9 - six module #395
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small proposal.
72a8750
to
733f058
Compare
24ce878
to
4961679
Compare
2f109c4
to
f6275cd
Compare
4961679
to
9a131fa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's only possible if shotgunsoftware/tk-core#1042 is merged and released first
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes Python 2 compatibility code as part of the larger Python 2 removal effort, specifically targeting the six
module and related utility functions. The changes clean up legacy compatibility layers that are no longer needed since the project has moved to Python 3 only.
Key changes:
- Removed the bundled
six
module and related imports from test and production code - Deleted the custom
sgutils.py
andsgsix.py
compatibility modules - Replaced
six.PY38
version checks with directsys.version_info
comparisons - Updated configuration files to exclude removed modules from linting and coverage
Reviewed Changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
shotgun_api3/shotgun.py | Replaced six.PY38 checks with sys.version_info comparisons and removed six/sgutils imports |
shotgun_api3/lib/six.py | Complete removal of the bundled six compatibility library |
shotgun_api3/lib/sgutils.py | Removed custom utility functions for Python 2/3 compatibility |
shotgun_api3/lib/sgsix.py | Removed Shotgun-specific six extensions module |
tests/*.py | Cleaned up six imports from test files |
Configuration files | Updated flake8 and coverage exclusions to remove references to deleted modules |
Description
PR orders